/* 
 * File:   disciplina.h
 * Author: atila
 *
 * Created on 2 de Dezembro de 2010, 17:26
 */

#ifndef DISCIPLINA_H
#define	DISCIPLINA_H

#ifdef	__cplusplus
extern "C" {
#endif

typedef struct Disciplina {
    int id;
    char descricao[255];
    int semestre;
    int curso_id;
} Disciplina;


#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define DISCIPLINA_DB "src/disciplina/disciplina.bin"
#define DISCIPLINA_SEQ "src/disciplina/disciplina_seq.bin"
#include "../common/sequence.h"
#include "../common/messages.h"
#include "../common/common.h"

int create_disciplina(FILE *f);
void list_by_curso(FILE *f);
void list_by_semestre(FILE *f);
void list_by_id(FILE *f);
void update_disciplina(FILE *f);

#ifdef	__cplusplus
}
#endif

#endif	/* DISCIPLINA_H */

